$("#submission").click(function () {
    var customMark = $("#customMark").val();
    if (customMark == "" || customMark == null) {
        alert("自定义标签不能为空！");
        return;
    } else {
        var r = confirm("提交自定义标签模板？");
        if (r == true) {
            $.ajax({
                url: Feng.ctxPath + "/caseSelection/addCustomMark",
                type: "post",
                data: {
                    "customMark": customMark
                },
                success: function (data) {
                    window.parent.location.reload();
                    parent.layer.close(parent.layer.getFrameIndex(window.name));
                }
            });
        } else {}
    }
});